package com.letoken.platform.app.job;


import com.letoken.platform.app.service.AppMiningDetailService;
import com.letoken.platform.pub.enums.LetokenApiResponseEnum;
import com.letoken.platform.pub.enums.LetokenTokenTypeEnum;
import com.letoken.platform.pub.enums.TokenTransactionStatusEnum;
import com.letoken.platform.pub.enums.TokenTransactionTypeEnum;
import com.letoken.platform.pub.exception.ApiServiceException;
import com.letoken.platform.repo.admin.dao.AdminMiningInfoMapper;
import com.letoken.platform.repo.admin.po.AdminMiningInfo;
import com.letoken.platform.repo.app.dao.AppMiningInfoMapper;
import com.letoken.platform.repo.app.dao.AppUserWalletMapper;
import com.letoken.platform.repo.app.po.AppMiningDetail;
import com.letoken.platform.repo.app.po.AppMiningInfo;
import com.letoken.platform.repo.app.po.AppUserAssetsHistory;
import com.letoken.platform.repo.app.po.AppUserWallet;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component
@Slf4j
public class MiningInfoJob {

    @Autowired
    private AppMiningDetailService appMiningDetailService;


    @XxlJob("mining")
    public void mining(){
        appMiningDetailService.mining();
    }
}
